x86: extend debug key 't' to collect useful clock skew info
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 28 Jul 2008 10:36:39 +0000 (11:36 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 28 Jul 2008 10:36:39 +0000 (11:36 +0100)
commit839f06eff1b6fcaa3ceef1e9696955b6599bca68
treefe25f6ff253f7b2d81b962674dea0fee77733b57
parent42bcbe769e71ec55daf48277c91119cbd3d53096
x86: extend debug key 't' to collect useful clock skew info

By repeating "xm debug-key t; xm dmesg | tail -N" in
dom0 (e.g. with the "watch" command), useful skew info
about the machine can be collected, which will be very
helpful for diagnosing customer problems on misbehaving
machines.

Patch details:
1) Min and max readings from the current sample are useless
so get rid of those but retain the current maxdif (stime skew).
2) Remember max of skew, sum of skews, and a count
so average skew can be displayed.
3) Also record info for cycles (tsc on x86, itc on ia64).

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
xen/common/keyhandler.c